﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TopicDetail.aspx.cs" Inherits="MYSMRM.Web.QS.TopicDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:LinkButton ID="lbtn_Add" runat="server" onclick="lbtn_Add_Click">Add</asp:LinkButton>
&nbsp;&nbsp;&nbsp;
    <asp:LinkButton ID="lbtn_Save" runat="server" onclick="lbtn_Save_Click">Save</asp:LinkButton>
&nbsp;&nbsp;&nbsp;
    <asp:LinkButton ID="lbtn_Cancel" runat="server" onclick="lbtn_Cancel_Click">Cancel</asp:LinkButton>
<p>
    <table>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Title:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_Title" runat="server" Width="450px"></asp:TextBox>
            </td>
        </tr>
    </table>
</p>
<p>
    <table>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Start Date:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_StartDate" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Start Time:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_StartTime" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="End Date:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_EndDate" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="Label5" runat="server" Text="End Time:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_EndTime" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>    
</p>
<p>
    <table width="450px">
        <tr>
            <td style="width:150px">
                <asp:CheckBox ID="cb_AllowAutoClose" runat="server" Text="Allow Auto Close" />
            </td>
            <td style="width:150px">
                <%--<asp:CheckBox ID="cb_MultiSelect" runat="server" Text="Multi Select" />--%>
            </td>
            <td style="width:150px">
                <asp:CheckBox ID="cb_Anonymity" runat="server" Text="Anonymity" />
            </td>
        </tr>
        <tr>
            <td style="width:150px">
                <asp:CheckBox ID="cb_SendEmail" runat="server" Text="Send Email" />
            </td>
        </tr>
        <tr>
            <td style="width:150px">
                <asp:Label ID="Label6" runat="server" Text="Email Address:"></asp:Label>
            </td>
            <td colspan="2" style="width:300px">
                <asp:TextBox ID="txt_EmailAddress" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
    </table>
</p>
<p>
    <table>
        <tr>
            <td>
                <asp:LinkButton ID="lbtn_AddOption" runat="server" 
                onclick="lbtn_AddQuestion_Click">Add Question</asp:LinkButton>
            </td>
            <td>
                <asp:TextBox ID="txt_Question" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
                <tr>
            <td>
                <asp:Label ID="lblSequence" runat="server" Text="Sequence:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_Sequence" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td >
              <%-- <asp:Label ID="Label3" runat="server" Text="Multi Select"></asp:Label>--%>
            </td>
            <td >
                <asp:CheckBox ID="cb_MultiSelect" runat="server" Text="Multi Select" />
            </td>
        </tr>
    </table>
   <asp:GridView ID="gv_Questions" runat="server" AutoGenerateColumns="False" 
        Width="600px" onrowdeleting="gv_Questions_RowDeleting" 
        onrowediting="gv_Questions_RowEditing" 
        onrowcancelingedit="gv_Questions_RowCancelingEdit" 
        onrowupdating="gv_Questions_RowUpdating" 
        onrowdatabound="gv_Questions_RowDataBound">
        <Columns>
      <%--   <asp:TemplateField HeaderText="Select as Last Question">
                    <ItemTemplate>
                        <asp:CheckBox ID="ID_SELECTED" runat="server" />
                    </ItemTemplate>
                  </asp:TemplateField>--%>
            <asp:BoundField DataField="I_ID" HeaderText="ID" ReadOnly="True" 
                Visible="False" />
            <asp:BoundField DataField="I_TOPIC_ID" HeaderText="Topic ID" ReadOnly="True" 
                Visible="False" />
            <%--<asp:TemplateField HeaderText="Option">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("S_OPTION") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("S_OPTION") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="500px" />
            </asp:TemplateField>--%>
            <asp:BoundField DataField="S_QUESTION" HeaderText="Question" Visible="True" >
                <ItemStyle Width="500px" />
            </asp:BoundField>
            <asp:BoundField DataField="I_SEQUENCE" HeaderText="Sequence" Visible="True" >
            </asp:BoundField>
            <asp:BoundField DataField="B_MULTI_SELECT" HeaderText="MultiSelect" Visible="True" >
            </asp:BoundField>
            <asp:CommandField ShowEditButton="True" CausesValidation="false">
            <ItemStyle Width="50px" />
            </asp:CommandField>
            <asp:CommandField ShowDeleteButton="True">
            <ItemStyle Width="50px" />
            </asp:CommandField>
        </Columns>
    </asp:GridView>
</p>
</asp:Content>